package com.hmall.item.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmall.item.pojo.Item;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.mybatis.spring.annotation.MapperScan;

import java.sql.Wrapper;
import java.util.List;

/**
 * @author 29143
 */
@Mapper
public interface ItemMapper extends BaseMapper<Item> {

    @Update("UPDATE tb_item SET STATUS=#{status} WHERE id=#{id} ")
    void updateStatus(@Param("id") Long id,
                      @Param("status") Integer status);

}
